<template>
  <div>
    {{state.count}}
    <el-button @click="btnclick">按钮</el-button>
    <div>{{x}} -- {{y}}</div>
  </div>
</template>

<script setup>
import { reactive, toRefs } from 'vue'
import usePostion from '../hooks/usePostion'
const state = reactive({
  count: 0,
})
let btnclick = () => {
  state.count++
}
const {x,y} = usePostion()
</script>

<style lang="scss" scoped>
</style>